function colorswap(row,flag)
{
	if(flag==1) {
		row.style.cursor= 'pointer';

		row.style.background = '#f2f2f2';
	} else {
		row.style.background = '#ffffff';
	}
}

function openDetails(id,customer)
{	id = id.split("-");
	var url = "appointment-details.php?id=";
	if(customer!='') {
		url = "customer-appointment-details.php?id=";
	}
	location.href = url+id[1];
}